//
//  XGUserCardModel.swift
//  TodayNews
//
//  Created by monkey on 2020/2/20.
//  Copyright © 2020 itcast. All rights reserved.
//

import HandyJSON

struct XGUserCardModel: HandyJSON
{
    /// 名称
    var show_name: String?
    /// 推荐原因
    var recommend_reason: String?
    /// 用户信息
    var userInfo: XGUserInfo?
    
    mutating func mapping(mapper: HelpingMapper)
    {
        mapper <<<
        self.userInfo <-- "user.info"
    }
}

struct XGUserInfo: HandyJSON
{
    /// 头像
    var avatar_url: String?
    /// 描述
    var desc: String?
    /// 用户昵称
    var name: String?
    /// 用户昵称
    var screen_name: String?
    /// 用户id
    var user_id:UInt64 = 0
    /// 是否认证
    var user_verified: Bool = false
    /// 认证内容
    var verified_content: String?
    /// 认证原因
    var verified_reason: String?
}
